package com.d.ydfactory.constants;

import java.util.HashMap;
import java.util.Map;

/**
 * 宜搭审批相关参数配置
 */
public class ApproveConstant {
    public static final String YIDA_APP_CODE = "APP_xxxxxxxxxxxxxxxxxxx";
    public static final String YIDA_APP_SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * 对应流程记录类型定义
     * 以下所有定义
     * 增加流程需添加
     */
    //key,from uuid :value businessType
    public static Map<String, Integer> yidaProcessConfMap = new HashMap<String, Integer>() {
        {
            put("FORM-xxxxxxxxxxxxxxxxxxxxxxxxx", 1);//计划采购
            put("FORM-yyyyyyyyyyyyyyyyyyyyyyyyy", 2);//采购
            put("FORM-zzzzzzzzzzzzzzzzzzzzzzzzz", 3);//后补采购
            put("FORM-aaaaaaaaaaaaaaaaaaaaaaaaa", 4);//付款
            put("FORM-bbbbbbbbbbbbbbbbbbbbbbbbb", 5);//合同
            put("x", 6);
            put("x", 7);
            put("x", 8);
            put("x", 9);
        }
    };

    /**
     * 流程id所对应的业务路由
     * key,from uuid :value approveTypeRoute
     */
    public final static Map<Integer, Integer> yidaProcessAndApproveTypeRoute = new HashMap<Integer, Integer>() {
        {
            put(1, 2);//计划采购
            put(2, 2);//采购
            put(3, 2);//后补采购
            put(4, 3);//付款
            put(5, 1);//合同
            put(6, 5);//工单采购
        }
    };
    /**
     * 对应erp审批路由
     */
    public final static Map<Integer, String> approveTypeRoute = new HashMap<Integer, String>() {
        {
            //1合同2采购单 3付款单
            put(1, "ContractApproveImpl");
            put(2, "PurchaseOrderApproveImpl");
            put(3, "PaymentApproveImpl");//付款
            put(4, "");//收款单
        }
    };

    /**
     * 流程审批部门（每增加一个部门就要增加一项，发起人只能有一个流程部门，后期改版将发起部门放到页面上选择）
     */
    public final static Map<String, String> dingProcessDept = new HashMap<String, String>() {
        {
            put("997950501", "技术部");
            put("997950498", "财务部");
            put("997950493", "品牌6组");
            put("997950492", "品牌8组");
            put("997950496", "采购1组");
            put("997950500", "品牌7组");
            put("925069791", "商超项目部");
            put("997950494", "商务综合");
        }
    };

    /**
     * 计划采购流程对应宜搭字段
     */
    public final static Map<String, String> planPurchaseOrderapproveItem = new HashMap<String, String>() {
        {
            //
            put("FROM_UUID", "FORM-xxxxxxxxxxxxxxxx");
            put("PROCESS_CODE", "TPROC--xxxxxxx");
            put("采购单号", "textField_lu0nfl8e");
            put("申请部门", "departmentSelectField_lw8m4cpe");
            put("供应商名称", "textField_lu0k3gky");
            put("合作模式", "selectField_lu0k3gl0");
            put("计划金额", "numberField_lu0k3gl1");
            put("备注", "textareaField_lu0k3gl2");
            put("图片", "imageField_lw5zydj6");
            put("附件", "attachmentField_lss9lxyz");
//            put("附件2", "tableField_luwh91vr");
//            put("附件名称", "textField_luwh91vs");
//            put("附件地址", "textField_luwh91vt");
        }
    };

    /**
     * 采购流程对应宜搭字段
     */
    public final static Map<String, String> purchaseOrderapproveItem = new HashMap<String, String>() {
        {
            //
            put("FROM_UUID", "FORM-xxxxxxxxxxxxxx");
            put("PROCESS_CODE", "TPROC--xxxxxxxxxxx");
            put("采购单号", "textField_luc3c8v2");
            put("申请部门", "departmentSelectField_lw8mj7d2");
            put("供应商名称", "textField_lu0k3gky");
            put("合作模式", "selectField_lu0k3gl0");
            put("金额", "numberField_lu0k3gl1");
            put("押金", "numberField_lu0kfnok");
            put("备注", "textareaField_lu0k3gl2");
            put("图片", "imageField_lw5zf4aa");
            put("附件", "attachmentField_lss9lxyz");
            put("品牌汇总", "tableField_m33w4kto");
            put("品牌汇总的品牌名称", "textField_m33w4ktp");
            put("品牌汇总的采购金额", "textField_m33w4ktq");
            put("品牌汇总的采购数量", "textField_m33w4ktr");
        }
    };

    /**
     * 后补采购流程对应宜搭字段
     */
    public final static Map<String, String> backupPurchaseOrderapproveItem = new HashMap<String, String>() {
        {
            //
            put("FROM_UUID", "FORM-cccccccccccccccccccccc");
            put("PROCESS_CODE", "TPROC--cccccccccccccccc");
            put("父采购单号", "textField_luc3c8v2");
            put("申请部门", "departmentSelectField_lw8mj7d2");
            put("供应商名称", "textField_lu0k3gky");
            put("合作模式", "selectField_lu0k3gl0");
            put("金额", "numberField_lu0k3gl1");
            put("押金", "numberField_lu0kfnok");
            put("备注", "textareaField_lu0k3gl2");
            put("图片", "imageField_lw5zf4aa");
            put("附件", "attachmentField_lss9lxyz");
            put("品牌汇总", "tableField_m33w19a1");
            put("品牌汇总的品牌名称", "textField_m33w19a2");
            put("品牌汇总的采购金额", "textField_m33w19a3");
            put("品牌汇总的采购数量", "textField_m33w19a4");
        }
    };


    /**
     * 付款单流程对应宜搭字段
     */
    public final static Map<String, String> paymentApproveItem = new HashMap<String, String>() {
        {
            //
            put("FROM_UUID", "FORM-vvvvvvvvvvvvvvvvvvv");
            put("PROCESS_CODE", "TPROC--ddddddddddddddddd");
            put("付款单号", "textField_luqe7i1y");
            put("申请部门", "departmentSelectField_lw8mmlgp");
            put("付款金额", "numberField_luqe7i21");
            put("付款方式", "textField_luqe7i22");
//            put("支付时间", "textField_luqe7i24");
            put("收款公司", "textField_luqe7i25");
            put("付款公司", "textField_m33w7p5g");
            put("支行名称", "textField_luqe7i26");
            put("备注", "textareaField_luqe7i29");
            put("附件", "attachmentField_luqe7i2a");
            put("图片", "imageField_lw5zyzmr");
            put("银行账户", "textField_luqe7i27");
            put("来源单号", "textField_luqe7i28");
            put("合作模式", "selectField_lvg1tyni");
        }
    };
}
